package com.hlhj.funlike_business.presenter;

import android.content.Context;

import com.example.mymvp.mvp.BasePresenter;
import com.hlhj.funlike_business.bean.FoodTypeBean;
import com.hlhj.funlike_business.moudle.MineFoodFgmMoudle;
import com.hlhj.funlike_business.views.MineFoodFgmView;

import java.util.List;

public class MineFoodFgmPresenter extends BasePresenter<MineFoodFgmMoudle,MineFoodFgmView> implements MineFoodFgmMoudle.getFoodList {
    @Override
    public void createModule() {
        module = new MineFoodFgmMoudle();
        module.setListener(this);
    }

    public void LoadFoodList(Context context){
        module.LoadFoodList(context);
    }

    @Override
    public void showFoodList(List<FoodTypeBean.DataBean> dataBeans) {
        getView().showFoodList(dataBeans);
    }
}
